﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace VisionCloud.Core.Model.Sys
{
    /// <summary>
    /// 用户升级记录
    /// </summary>
    [Table("SysUserUpdateRecord")]
    public class SysUserUpdateRecord : BaseEntity
    {
        [Key]
        public Guid UpdateId { get; set; }
        [ForeignKey("YunUserGuid")]
        public Guid UserId { get; set; }
        /// <summary>
        /// 设备MAC
        /// </summary>
        public string DeviceMac { set; get; }
        /// <summary>
        /// 当前版本
        /// </summary>
        public string CurrentVersion { set; get; }
        /// <summary>
        /// 设备版本
        /// </summary>
        public string DeviceVersion { set; get; }
        /// <summary>
        /// 是否有升级
        /// </summary>
        public bool IsUpdated { set; get; }
        /// <summary>
        /// 版本发布时间
        /// </summary>
        public DateTime PublishDate { set; get; }
        public Guid ReleaseId { get; set; }
    }
}
